file(GLOB_RECURSE SRCS *.h *.cpp *.hpp)
# foreach(VAR ${SRCS})
#     message(STATUS ${VAR})
# endforeach()

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_library(SEPhysics SHARED ${SRCS})
# add_library(SEPhysics STATIC ${SRCS})

target_include_directories(SEPhysics PRIVATE
    ${BULLET_PHYSICS_SOURCE_DIR}/src
)

target_link_libraries(SEPhysics PRIVATE 
    SECore
    glm-header-only
    BulletDynamics
    BulletCollision
    LinearMath
    SEMath
)

target_include_directories(SEPhysics PUBLIC ../)

target_compile_options(
    SEPhysics PRIVATE
    $<$<CONFIG:>:/MT> #---------|
    $<$<CONFIG:Debug>:/MTd> #---|-- Statically link the runtime libraries
    $<$<CONFIG:Release>:/MT> #--|
)

